/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package POJO;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author Kute_Ants
 */
public class traHangPOJO implements Serializable 
{
    private String maTraHang;
    private String maOrder;
    private String maSanPham;
    private Date thoiGianTra;
    private int soLuongTra;
    private String lyDo;
    
    //phuong thuc khoi tao

    public traHangPOJO(String MaTraHang, String MaOrder, String MaSanPham, Date ThoiGianTra, int SoLuongTra, String LyDo) 
    {
        this.maTraHang = MaTraHang;
        this.maOrder = MaOrder;
        this.maSanPham = MaSanPham;
        this.thoiGianTra = ThoiGianTra;
        this.soLuongTra = SoLuongTra;
        this.lyDo = LyDo;
    }
    
    public traHangPOJO() 
    {
        this.maTraHang = null;
        this.maOrder = null;
        this.maSanPham = null;
        this.thoiGianTra = new Date();
        this.soLuongTra = 0;
        this.lyDo = null;
    }
    
    public traHangPOJO(traHangPOJO TH) 
    {
        this.maTraHang = TH.maTraHang;
        this.maOrder = TH.maOrder;
        this.maSanPham = TH.maSanPham;
        this.thoiGianTra = TH.thoiGianTra;
        this.soLuongTra = TH.soLuongTra;
        this.lyDo = TH.lyDo;
    }
    
    // phuong thuc get set

    public String getLyDo() {
        return lyDo;
    }

    public void setLyDo(String LyDo) {
        this.lyDo = LyDo;
    }

    public String getMaOrder() {
        return maOrder;
    }

    public void setMaOrder(String MaOrder) {
        this.maOrder = MaOrder;
    }

    public String getMaSanPham() {
        return maSanPham;
    }

    public void setMaSanPham(String MaSanPham) {
        this.maSanPham = MaSanPham;
    }

    public String getMaTraHang() {
        return maTraHang;
    }

    public void setMaTraHang(String MaTraHang) {
        this.maTraHang = MaTraHang;
    }

    public int getSoLuongTra() {
        return soLuongTra;
    }

    public void setSoLuongTra(int SoLuongTra) {
        this.soLuongTra = SoLuongTra;
    }

    public Date getThoiGianTra() {
        return thoiGianTra;
    }

    public void setThoiGianTra(Date ThoiGianTra) {
        this.thoiGianTra = ThoiGianTra;
    }
    
    
    
    
}
